package com.piccolo.wrapper.client.component.Overlay;

import com.piccolo.wrapper.client.component.PBounds;
import com.piccolo.wrapper.client.component.JSNI.PBoundsJSNI;

public class PBoundsOverlay extends Overlay
{
	private static PBoundsJSNI impl = new PBoundsJSNI(); 
	protected PBoundsOverlay(){}
	public static PBoundsOverlay create(double x, double y, double width, double height) { return impl.create(x, y, width, height); }
	public final double getX() { return impl.getX(this); }
	public final double getY() { return impl.getY(this); }
	public final double getWidth() { return impl.getWidth(this); }
	public final double getHeight() { return impl.getHeight(this); }
	public final boolean isEmpty() { return impl.isEmpty(this); }
	public final void add(double x, double y, double width, double height) { impl.add(this, x, y, width, height); }
	public final boolean contains(double x, double y) { return impl.contains(this, x, y); }
	public final boolean intersects(PBounds bounds) { return impl.intersects(this, bounds.getOverlay()); }
}
